FROM hub.c.163.com/nce2/python:2.7
# Sources
RUN echo "deb http://mirrors.163.com/debian wheezy main non-free contrib" > /etc/apt/sources.list
RUN echo "deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free" >> /etc/apt/sources.list
RUN echo "deb-src http://mirrors.163.com/debian wheezy main non-free contrib" >> /etc/apt/sources.list
RUN echo "deb-src http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free" >> /etc/apt/sources.list
RUN \
      apt-get update -y && \
      apt-get remove -y python && \
      apt-get install -y python
RUN wget -q "https://bootstrap.pypa.io/get-pip.py" && \
      python get-pip.py > /dev/null && \
      pip install Flask
ADD hello.py /root/hello.py
WORKDIR /root/
CMD python hello.py